let s: String = "abcdefg".to_owned(); let s_slice: &str = &s[..]; // take a full slice of the string